import { FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';


export interface GrowCardItem {
	icon: string;
	title: string;
	value?: number;
	total: number;
	chain?: number;
	color?: string;
	action?: string;
	footer?: string;
	yearonyear?: number;
}
export const analysisTitle = '';


//查询数据
export const searchFormSchema: FormSchema[] = [
	{
		label: '切换运营商',
		field: 'isDeleted',
		component: 'JDictSelectTag',
		componentProps: {
			dictCode: 'isdelet',
		},
		//colProps: {span: 6},
	},
];

// 高级查询数据
export const superQuerySchema = {
	name: { title: '充电站名称', order: 0, view: 'text', type: 'string' },
	city: { title: '所属城市', order: 1, view: 'pca', type: 'string' },
	province: { title: '所属省份', order: 2, view: 'pca', type: 'string' },
	stationType: {
		title: '站类型（0:城市公共, 1:高速站, 2:公交站，3：内部站 ，4：其他）',
		order: 3,
		view: 'number',
		type: 'number',
		dictCode: 'stationType',
	},
	operatorId: { title: '所属运营商', order: 4, view: 'number', type: 'number' },
	address: { title: '站地址', order: 5, view: 'text', type: 'string' },
	status: { title: '站状态', order: 6, view: 'number', type: 'number', dictCode: 'cdzzt' },
	totalPower: { title: '装机功率（千瓦）', order: 7, view: 'number', type: 'number' },
	dcChargers: { title: '直流桩数', order: 8, view: 'number', type: 'number' },
	acChargers: { title: '交流桩数', order: 9, view: 'number', type: 'number' },
	establishmentDate: { title: '建档日期', order: 10, view: 'date', type: 'string' },
	longitude: { title: '经度', order: 11, view: 'number', type: 'number' },
	latitude: { title: '纬度', order: 12, view: 'number', type: 'number' },
	isDeleted: { title: '删除状态（0:未删除, 1:已删除）', order: 13, view: 'number', type: 'number', dictCode: 'isdelet' },
};

/**
 * 流程表单调用这个方法获取formSchema
 * @param param
 */
export function getBpmFormSchema(_formData): FormSchema[] {
	// 默认和原始表单保持一致 如果流程中配置了权限数据，这里需要单独处理formSchema
	return formSchema;
}
